package com.hr.domain.po;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;
@Data
@TableName("comment1")
public class Comment {
    @TableId(type = IdType.AUTO)
    private Long id;

    private Long houseId;
    private Long userId;
    private String content;
    private Long parentId; // null 表示一级评论

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
